package com.deft.design.decotator;

/**
 * @author Hide丶love
 * @date 2022/05/01
 **/
public abstract class SsoDecorator implements HandlerInterceptor {

    private final HandlerInterceptor handlerInterceptor;

    public SsoDecorator(HandlerInterceptor handlerInterceptor) {
        this.handlerInterceptor = handlerInterceptor;
    }

    @Override
    public boolean preHandle(String request, String response, Object handler) {
        return handlerInterceptor.preHandle(request, response, handler);
    }
}
